Skip to content

Shows refund details

Request

Required scope: refund:read

Security
accountId and apiKey
Path
idstring, (uuid)required

Resource Identification

curl -i -X GET \
  'https://api.test.easypay.pt/2.0/refund/{id}' \
  -H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
  -H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'

Responses

OK

Bodyapplication/json
idstring, (uuid)

A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.

statusany

Indicates the current status of the refund. Possible values include:

  • waiting: The payment instruction has been given, but the chosen payment method requires confirmation from an external entity before the status of the operation is finalized.
  • pending: This is the initial state, and it means that the refund is queued.
  • success: The refund has been completed successfully.
  • failed: The refund could not be completed due to an error or issue.

This field provides a clear indication of the current state of the refund, helping users understand its progress and outcome.

Enum:"success""pending""failed""waiting"
transaction_keystring

Your internal key identifying this refund.

valuenumber, (double)

The monetary amount requested for the transaction. This field is formatted as a double, and will be rounded to two decimal places (e.g., "100.00").

Example:15.98
account_holderstring

Bank account holder name.

emailstring

The email address of the account holder. This field is used for communication purposes, including sending notifications about the refund stat.

Example:"customer@example.pt"
phonestring

The contact phone number of the account holder, including the country code indicator (e.g., "+351"). This field is used for communication purposes, such as contacting the account holder for verification

Example:"+351912345678"
ibanstring

The International Bank Account Number of the account to which the refund will be sent. This field is used to uniquely identify the recipient's bank account across international borders.

Example:"PT50007950088428437201551"
reward_redemption_reversalobject

The reversal of the capture's reward redemption performed by this refund — the cashback restored to the customer's reward balance instead of being refunded to the payment method (the revert.reward_redemption_reversal the refund was created with). Present only when the refunded capture had redeemed reward credits and this refund restored them. This amount is wallet credit and is not part of the refund value paid out to the payment method. The restored credit appears on the customer's reward ledger as a REWARD_RESTORATION entry on GET /customer/{id}/rewards. See the Rewards & Redemptions guide for the full flow.

captureobject

Object with all the details about the capture.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "success", "transaction_key": "string", "value": 15.98, "account_holder": "string", "email": "customer@example.pt", "phone": "+351912345678", "iban": "PT50007950088428437201551", "reward_redemption_reversal": { "value": 2.5, "value_remaining": 0 }, "capture": { "transaction_key": "string", "capture_date": "2019-08-24T14:15:22Z", "account": { … }, "status": "delayed", "splits": [ … ], "payment_type": "string", "payment_id": "d43b87f9-9e28-4802-8eaa-6ee91a40ea71", "id": "string", "descriptive": "string", "value": 10.86, "force_3ds": false, "reward_redemption": { … } } }